package com.hxzy.cms.controller;

import com.hxzy.cms.service.CmsSubjectService;
import com.hxzy.common.dto.PageDTO;
import com.hxzy.common.vo.ResponseVO;
import com.hxzy.common.vo.ResultVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "内容主题")
@RequestMapping(value = "/mall/cms")
@RestController
public class CmsSubjectController {

    @Autowired
    private CmsSubjectService cmsSubjectService;


    @ApiOperation(value = "分页查询主题")
    @GetMapping(value = "/subject")
    public ResultVO<ResponseVO>  search(PageDTO pageDTO){
        return this.cmsSubjectService.search(pageDTO);
    }
}
